import request from '@/axios/axios.js'

// 查询
export const searchApi = (params) => {
    return request({
        method: 'post',
        url: '/dms/moldinfo/getDeviceTzList',
        data: params
    })
}

// 增加
export const addApi = (params) => {
    return request({
        method: 'post',
        url: '/dms/moldinfo/addMMoldInfo',
        data: params
    })
}

// 编辑
export const editApi = (params) => {
    return request({
        method: 'post',
        url: '/dms/moldinfo/updateMMoldInfo',
        data: params
    })
}

// 删除
export const deleteApi = (params) => {
    return request({
        method: 'post',
        url: '/dms/moldinfo/deleteByIds',
        data: params.delIds
    })
}

// 下载模板
export const templateApi= (params) => {
    return request({
        method: 'get',
        url: '/dms/moldinfo/downloadTemplate',
        responseType: 'blob',
        data: params
    })
}

// 下载模板
export const basicMaterialValueExcelTemplate= (params) => {
    return request({
        method: 'get',
        url: '/dms/basicMaterialValue/excelTemplate',
        responseType: 'blob',
        data: params
    })
}

// 导出

export const  exportApi= (params) => {
    return request({
        method: 'POST',
        url: '/dms/moldinfo/exportTz',
        responseType: 'blob',
        data: params
    })
}


